package com.mnsq.comment.bean.condition;

import com.mnsq.common.bean.condition.CommonBaseCondition;
import com.mnsq.common.bean.entity.comment.CommentSubject;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * TODO 评论、取消评论、添加操作日志等属性设计
 * @author Administrator
 * @date 2019/1/22 0022
 */
@Data
@Accessors(chain = true)
public class CommentCondition extends CommonBaseCondition<CommentSubject> {

    /**
     * 对象主键id
     */
    private Long id;
    /**
     * 父对象主键id
     */
    private Long parentId;
    /**
     * 评论目标对象id，用于查询该对象的所有评论
     */
    private Long targetId;

    @Override
    public CommentSubject getInstance() {
        return new CommentSubject();
    }

    @Override
    public boolean isEmpty() {
        return false;
    }
}
